﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 部门
    /// </summary>
    [Table("T_Department")]
    public class Department:BaseEntity
    {
        /// <summary>
        /// 部门代码
        /// </summary>
        [MaxLength(50)]
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [MaxLength(20)]
        public string DepartmentName { get; set; }
        /// <summary>
        /// 上级部门Id
        /// </summary>
        public long? ParentId { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        [MaxLength(20)]
        public string Contact { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [MaxLength(50)]
        public string ContactMobile { get; set; }
        public int? Status { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(50)]
        public string Remark { get; set; }
    }
}
